package com.hzw.saas.web.admin.hpc.param;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author sonam
 * @since 2021/2/25 16:25
 */
@Data
@ApiModel(value = "创建充值订单参数")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class SubmitBalanceOrderParam extends SalesParam {

    /**
     * 用户ID
     */
    @NotBlank(message = "用户id不能为空")
    @ApiModelProperty(value = "用户ID", position = 1)
    private String userId;

    /**
     * 充值金额
     */
    @DecimalMin(value = "0", inclusive=false , message = "充值金额不能小于0")
    @ApiModelProperty(value = "充值金额", position = 2)
    private Double payValue;

}
